import 'package:fluro/fluro.dart';
import 'package:acgn_pioneer/public.dart';

import './handler_router.dart';

/// 路由配置
class ConfigRouter {
  ConfigRouter(FluroRouter router) {
    router.notFoundHandler = notFoundHandler;
    router.define(RouterPage.HOME_PAGE, handler: homePageHandler);
    router.define(RouterPage.SPLASH_PAGE, handler: splashPageHandler);
    router.define(RouterPage.READ_PAGE, handler: readPageHandler);
    router.define(RouterPage.MY_INDEX, handler: myIndexHandler);
    router.define(RouterPage.MY_ACCOUNT, handler: myAccountHandler);
    router.define(RouterPage.MY_EDIT, handler: myEditHandler);
    router.define(RouterPage.MY_CREDIT, handler: myCreditHandler);
    router.define(RouterPage.PURSUE_PAGE, handler: pursuePageHandler);
    router.define(RouterPage.HISTORY_PAGE, handler: historyPageHandler);
    router.define(RouterPage.REGISTER_PAGE, handler: registerPageHandler);
    router.define(RouterPage.VERIFICATION_CODE_PAGE, handler: verificationCodePageHandler);
    router.define(RouterPage.INVITE_CODE_PAGE, handler: inviteCodePageHandler);
    router.define(RouterPage.SORT_MAIN_PAGE, handler: sortMainPage);
    router.define(RouterPage.TEST, handler: testHandler);
    router.define(RouterPage.TEST_LIFE, handler: testLifeHandler);
    router.define(RouterPage.WEB, handler: webViewHandler);
    router.define(RouterPage.SETTING, handler: settingHandler);
    
  }
}
